import {playMode} from 'common/js/config'
import {loadSearch, loadPlay, loadFavorite} from 'common/js/cache'

const state = {
  singer: {},
  playing: false,               // 播放状态
  fullScreen: false,            // 是否全屏
  playList: [],                 // 播放歌曲的列表
  sequenceList: [],             // 歌曲排序的列表
  mode: playMode.sequence,      // 播放状态
  currentIndex: -1,              // 当前播放下标
  disc: {},
  topList: {},
  searchHistory: loadSearch(),
  playHistory: loadPlay(),
  favoriteList: loadFavorite()
}

export default state
